package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.UserInfoView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.module.UserInfoModule

/**
 * Created by Never Fear   on 2018\11\13 0013.
Never More....
 */
class UserInfoPresenter :BasePresenter<UserInfoModule,UserInfoView>(), UserInfoModule.UpdateListener {
    override fun createModule() {
        module=UserInfoModule()
        module.listener=this
    }

    fun update(nickname:String?,head_img:String?,c: Context){
        module?.update(nickname, head_img, c)
    }
    override fun updateResp(myBaseBean: MyBaseBean) {
        view?.updateResp(myBaseBean)
    }
}